package agency.web.app.domain;

import java.util.*;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.ManyToMany;
import javax.persistence.Table;

@Entity
public class ShoppingTour extends AbstractTour{
	
	@ManyToMany(targetEntity = Plan.class, fetch = FetchType.EAGER)
	@JoinTable(name = "tour_has_plan", joinColumns = { @JoinColumn(name = "TOUR_ID") }, inverseJoinColumns = { @JoinColumn(name = "PLAN_ID") })
	private List<Plan> shopsList;
	
	public ShoppingTour(List<Country> country, String region, int price, String hotel, String transport, boolean hot, List<Trip> trips) {
	
		super(country, region, price, hotel, transport, hot, trips);
	}

	public List<Plan> getShopsList() {
		return shopsList;
	}

	public void setShopsList(List<Plan> shopsList) {
		this.shopsList = shopsList;
	}

}
